home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmCalendar
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Calendar"
- ClientHeight = 3600
- ClientLeft = 1425
- ClientTop = 1755
- ClientWidth = 2385
- Height = 4005
- Left = 1365
- LinkTopic = "Form2"
- MaxButton = 0 'False
- ScaleHeight = 3600
- ScaleWidth = 2385
- Top = 1410
- Width = 2505
- Begin SSPanel pnlCal
- Align = 2 'Align Bottom
- Alignment = 8 'Center - BOTTOM
- BackColor = &H00C0C0C0&
- BevelOuter = 0 'None
- Font3D = 0 'None
- Height = 4000
- Left = 0
- RoundedCorners = 0 'False
- TabIndex = 46
- Top = -405
- Width = 2385
- Begin SSPanel pnlDates
- Alignment = 8 'Center - BOTTOM
- BackColor = &H00C0C0C0&
- BevelOuter = 1 'Inset
- Font3D = 0 'None
- Height = 2295
- Left = 120
- TabIndex = 0
- Top = 1560
- Width = 2175
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "S"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = -1 'True
- Height = 255
- Index = 6
- Left = 1740
- TabIndex = 48
- Top = 240
- Width = 285
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "F"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = -1 'True
- Height = 255
- Index = 5
- Left = 1470
- TabIndex = 50
- Top = 240
- Width = 285
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "T"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = -1 'True
- Height = 255
- Index = 4
- Left = 1200
- TabIndex = 54
- Top = 240
- Width = 285
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "W"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = -1 'True
- Height = 255
- Index = 3
- Left = 930
- TabIndex = 53
- Top = 240
- Width = 285
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "T"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = -1 'True
- Height = 255
- Index = 2
- Left = 660
- TabIndex = 52
- Top = 240
- Width = 285
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "M"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = -1 'True
- Height = 255
- Index = 1
- Left = 360
- TabIndex = 51
- Top = 240
- Width = 285
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "S"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = -1 'True
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 49
- Top = 240
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 0
- Left = 120
- TabIndex = 1
- Top = 480
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 1
- Left = 390
- TabIndex = 2
- Top = 480
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 2
- Left = 660
- TabIndex = 3
- Top = 480
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 3
- Left = 930
- TabIndex = 4
- Top = 480
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 4
- Left = 1200
- TabIndex = 5
- Top = 480
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 5
- Left = 1470
- TabIndex = 6
- Top = 480
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 6
- Left = 1740
- TabIndex = 7
- Top = 480
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 7
- Left = 120
- TabIndex = 8
- Tag = "Sun"
- Top = 750
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 8
- Left = 390
- TabIndex = 9
- Tag = "Mon"
- Top = 750
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 9
- Left = 660
- TabIndex = 10
- Tag = "Tue"
- Top = 750
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 10
- Left = 930
- TabIndex = 11
- Tag = "Wed"
- Top = 750
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 11
- Left = 1200
- TabIndex = 12
- Tag = "Thu"
- Top = 750
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 12
- Left = 1470
- TabIndex = 13
- Tag = "Fri"
- Top = 750
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 13
- Left = 1740
- TabIndex = 14
- Tag = "Sat"
- Top = 750
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 14
- Left = 120
- TabIndex = 15
- Top = 1020
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 15
- Left = 390
- TabIndex = 16
- Top = 1020
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 16
- Left = 660
- TabIndex = 17
- Top = 1020
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 17
- Left = 930
- TabIndex = 18
- Top = 1020
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 18
- Left = 1200
- TabIndex = 19
- Top = 1020
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 19
- Left = 1470
- TabIndex = 20
- Top = 1020
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 20
- Left = 1740
- TabIndex = 21
- Top = 1020
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 21
- Left = 120
- TabIndex = 22
- Top = 1290
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 22
- Left = 390
- TabIndex = 23
- Top = 1290
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 23
- Left = 660
- TabIndex = 24
- Top = 1290
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 24
- Left = 930
- TabIndex = 25
- Top = 1290
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 25
- Left = 1200
- TabIndex = 26
- Top = 1290
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 26
- Left = 1470
- TabIndex = 27
- Top = 1290
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 27
- Left = 1740
- TabIndex = 28
- Top = 1290
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 28
- Left = 120
- TabIndex = 29
- Top = 1560
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 29
- Left = 390
- TabIndex = 30
- Top = 1560
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 30
- Left = 660
- TabIndex = 31
- Top = 1560
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 31
- Left = 930
- TabIndex = 32
- Top = 1560
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 32
- Left = 1200
- TabIndex = 33
- Top = 1560
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 33
- Left = 1470
- TabIndex = 34
- Top = 1560
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 34
- Left = 1740
- TabIndex = 35
- Top = 1560
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 35
- Left = 120
- TabIndex = 36
- Top = 1830
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Index = 36
- Left = 390
- TabIndex = 37
- Top = 1830
- Width = 285
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 37
- Left = 660
- TabIndex = 38
- Top = 1830
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 38
- Left = 930
- TabIndex = 39
- Top = 1830
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 39
- Left = 1200
- TabIndex = 40
- Top = 1830
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 40
- Left = 1470
- TabIndex = 41
- Top = 1830
- Width = 280
- End
- Begin Label caldate
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 280
- Index = 41
- Left = 1740
- TabIndex = 42
- Top = 1830
- Width = 280
- End
- End
- Begin TextBox txtYear
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Left = 600
- TabIndex = 43
- Text = "Text1"
- Top = 1200
- Width = 735
- End
- Begin SpinButton spnYear
- Height = 300
- Left = 1440
- SpinOrientation = 1 'Horizontal
- Top = 1200
- Width = 375
- End
- Begin ComboBox comMonths
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Left = 240
- TabIndex = 47
- Text = "Combo1"
- Top = 840
- Width = 1575
- End
- Begin SpinButton spnMonths
- Height = 300
- Left = 1800
- SpinOrientation = 1 'Horizontal
- Top = 840
- Width = 375
- End
- Begin Label lblDate
- Alignment = 2 'Center
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Left = 1080
- TabIndex = 45
- Top = 480
- Width = 105
- End
- Begin Label lblDateIndicator
- BackStyle = 0 'Transparent
- Height = 375
- Left = 120
- TabIndex = 44
- Top = 1080
- Visible = 0 'False
- Width = 375
- End
- End
- Dim varPreviousDate%
- Sub caldate_Click (Index As Integer)
- lblDateIndicator.Caption = caldate(Index).Caption
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- lblDateIndicator.Caption = caldate(Index).Caption
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- Dim fChange%
- caldate(varPreviousDate%).BackColor = &HC0C0C0
- caldate(varPreviousDate%).ForeColor = BLACK
- caldate(Index).BackColor = WHITE
- caldate(Index).ForeColor = RED
- varPreviousDate% = Index
- End Sub
- Sub comMonths_Change ()
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- GetCal
- End Sub
- Sub comMonths_Click ()
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- GetCal
- End Sub
- Sub Form_Load ()
- 'pnlCal.Height = frmCalendar.Height
- 'pnlCal.Width = frmCalendar.Width
- 'Add Months to comMonths
- For I = 1 To 12
- itest = Str(I) & "/1/1"
- comMonths.AddItem Format$(itest, "mmmm")
- Next I
-
- txtYear.Text = Format(Now, "yyyy")
- lblDate = Format$(Now, "dddd, MMMM d, YYYY")
- lblDateIndicator.Caption = Format(Now, "d")
- comMonths.ListIndex = Format(Now, "m") - 1
- GetCal
- End Sub
- Sub GetCal ()
- 'This routine is the calendar routine. It is activated from the
- 'Calendar, Vacation and Attendance forms. Each of those forms have
- 'calendars.
- 'For flow, make the calendar section invisible for the duraton of the routine
- pnlDates.Visible = False
- Dim calday
- 'Caldat is the begining of the selected month
- calday = CVDate(comMonths.Text & " 1, " & txtYear.Text)
- Dim calday2
- calday2 = calday
- For X = 0 To 41
- 'If the month changes, make the dat label invisible
- If Month(calday) <> Month(calday2) Then
- caldate(X).Visible = False
- caldate(X).Caption = ""
-
- Else
- 'Locating which day of the week the first day of the month is
- 'This is done by checking the Tag of the Second row of date labels
- 'don't increment the day until the day of the week is identified
- If Format(calday, "d") = 1 Then
- If Format$(calday, "ddd") = caldate(X + 7).Tag Then
- caldate(X).Caption = Format$(calday, "d")
- caldate(X).Visible = True
- calday = calday + 1
- Else
- caldate(X).Visible = False
- caldate(X).Caption = ""
- End If
- Else
- caldate(X).Caption = Format$(calday, "d")
- caldate(X).Visible = True
- calday = calday + 1
-
- End If
- End If
- 'Check for the current day and make the current day red forecolor, white back color
- If caldate(X).Caption = lblDateIndicator.Caption Then
- caldate(X).BackColor = WHITE
- caldate(X).ForeColor = RED
- varPreviousDate% = X
- Else
- caldate(X).BackColor = &HC0C0C0
- caldate(X).ForeColor = BLACK
- End If
- Next X
- pnlDates.Visible = True
- End Sub
- Sub spnMonths_SpinDown ()
- 'Check to see if this is the last day of the month
- If lblDateIndicator.Caption = "31" Then
- Select Case comMonths.ListIndex
- Case 1
- lblDateIndicator.Caption = "30"
- Case 6
- lblDateIndicator.Caption = "30"
- Case 9
- lblDateIndicator.Caption = "30"
- Case 11
- lblDateIndicator.Caption = "30"
- Case Is = 2
- If Format$(txtYear.Text, "yy") <> "00" Then
- If txtYear.Text Mod 4 = 0 Then
- lblDateIndicator = "29"
- Else
- lblDateIndicator = "28"
- End If
- End If
- End Select
- End If
- Select Case comMonths.ListIndex
- Case 0
- comMonths.ListIndex = 11
- txtYear = txtYear - 1
- Case Else
- comMonths.ListIndex = comMonths.ListIndex - 1
- End Select
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- GetCal
- End Sub
- Sub spnMonths_SpinUp ()
- If lblDateIndicator.Caption = "31" Then
- Select Case comMonths.ListIndex
- Case 2
- lblDateIndicator.Caption = "30"
- Case 4
- lblDateIndicator.Caption = "30"
- Case 7
- lblDateIndicator.Caption = "30"
- Case 9
- lblDateIndicator.Caption = "30"
- Case Is = 0
- If Format$(txtYear.Text, "yy") <> "00" Then
- If txtYear.Text Mod 4 = 0 Then
- lblDateIndicator = "29"
- Else
- lblDateIndicator = "28"
- End If
- End If
- End Select
- End If
- Select Case comMonths.ListIndex
- Case 11
- comMonths.ListIndex = 0
- txtYear = txtYear + 1
- Case Else
- comMonths.ListIndex = comMonths.ListIndex + 1
- End Select
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- GetCal
- End Sub
- Sub spnYear_SpinDown ()
- If comMonths.ListIndex = 1 And lblDateIndicator.Caption = "29" Then lblDateIndicator.Caption = "28"
- txtYear.Text = txtYear - 1
- lblDate = Format$(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- GetCal
- End Sub
- Sub spnYear_SpinUp ()
- If comMonths.ListIndex = 1 And lblDateIndicator.Caption = "29" Then lblDateIndicator.Caption = "28"
- txtYear.Text = txtYear + 1
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- GetCal
- End Sub
- Sub txtYear_KeyPress (KeyAscii As Integer)
- If KeyAscii = 13 Then
- lblDate = Format(CVDate(comMonths.Text & " " & lblDateIndicator & ", " & txtYear), "dddd mmmm d, yyyy")
- GetCal
- End If
- End Sub
-